﻿
namespace JustTypeUI.Logic
{
    /// <summary>
    /// Intermediate class for binding tasks in tasks list in GUI
    /// 
    /// Main Author: Peng Jun
    /// </summary>
    public class ResultTask: Task
    {
        private int resultIndex;
        public int ResultIndex{
            get{
                return resultIndex;
            }
            set{
                resultIndex = value;
            }
        }

        private string statusString;
        public string StatusString
        {
            get
            {
                return statusString;
            }
        }

        public ResultTask(Task task, int resultindex)
        {
            this.resultIndex = resultindex;
            this.name = task.Name;
            this.location = task.Location;
            this.deadline = task.Deadline;
            this.statusString = task.getStatusString();
        }
    }
}
